package com.book.dao;

import java.util.List;

import com.book.bean.Book;

public interface BookDao {
	//管理员添加图书
	public boolean addBook(Book book) throws Exception;
	//前台主页显示所有图书
	public List<Book> listBook() throws Exception;
	//前台根据图书编号查询
	public Book getOneBook(int bid) throws Exception;
	//前台推荐图书
	public List<Book> recomBook() throws Exception;
	//前台主页模糊查询
	public List<Book> keySearchBook(String keyword) throws Exception;
	//前台主页获得搜索框中的提示内容
	public List<String> allIndex() throws Exception;
	//前台修改图书的点击量
	public boolean modifyBook(int bid,int hintcount) throws Exception;
}
